//
//  perSonCell.m
//  AnnCar_user
//
//  Created by LiBenCan on 17/10/25.
//  Copyright © 2017年 LiBenCan. All rights reserved.
//

#import "perSonCell.h"
#import "DefaultChooseView.h"
@implementation perSonCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        self.selectionStyle = 0;
    }
    return self;
}

- (void)loadCellDic:(NSDictionary *)dataDic Section:(NSInteger)section
{
    if (!_nameLab) {
        
        //名字
        _nameLab = [TomamaUI createLabel:CGRectMake(15*screenW_6,0, SCREENW/2, 49*screenW_6) textAligment:0 font:[UIFont systemFontOfSize:15*screenW_6] textColor:TextBlack text:@"王者"];
        [self.contentView addSubview:_nameLab];
       
        //手机
        _phoneLab = [TomamaUI createLabel:CGRectMake(SCREENW/2+20*screenW_6,0, SCREENW/2-55*screenW_6, 49*screenW_6) textAligment:2 font:[UIFont systemFontOfSize:15*screenW_6] textColor:TextBlack text:@"18326552750"];
        [self.contentView addSubview:_phoneLab];
        
        _arrowImageV = [TomamaUI createImageView:CGRectMake(SCREENW-25*screenW_6, 18*screenW_6, 8*screenW_6, 14*screenW_6) backGroundImageV:@"My_arrow"];
        [self.contentView addSubview:_arrowImageV];
        
        [self.contentView addSubview:[ToolViewVC addCellLineLab:CGRectMake(15*screenW_6, 49*screenW_6, SCREENW-15*screenW_6, 1*screenW_6)]];
        
        _deaultView = [[DefaultChooseView alloc]initWithFrame:CGRectMake(0, 50*screenW_6, SCREENW, 50*screenW_6) IsSelect:section ==0?YES:NO];
        [self.contentView addSubview:_deaultView];
        __weak typeof(self)weakself = self;
        _deaultView.selectBlock = ^(NSInteger selectNumber){
            if (weakself.chooseBlock) {//回调选择的按钮
                weakself.chooseBlock(selectNumber);
            }
        };
        
    }
    
    
    
   
}
@end
